// raw2imgDlg.h : header file
//

#if !defined(AFX_RAW2IMGDLG_H__FE9F3D29_9478_4CD9_9DB1_C741E0631EF2__INCLUDED_)
#define AFX_RAW2IMGDLG_H__FE9F3D29_9478_4CD9_9DB1_C741E0631EF2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
#include <vector>
#include <iostream>
#include "imgWriter.h"

using namespace std;
#pragma warning(disable:4786)
/////////////////////////////////////////////////////////////////////////////
// CRaw2imgDlg dialog

class CRaw2imgDlg : public CDialog
{
// Construction
public:
	string & ConvertBmpFileName(string & strOld);
	int WriteData2Bmp(char const *, int nFileSize, string & strFileName);
	int GenerateFilesFromList(vector<string> & vecStr, CString strDst);
	CRaw2imgDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CRaw2imgDlg)
	enum { IDD = IDD_RAW2IMG_DIALOG };
	int		m_nImgHigh;
	int		m_nImgWidth;
	CString	m_strSrcPath;
	BOOL	m_bAllfile;
	BOOL	m_bRecursive;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRaw2imgDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	CString _strSourcePath;

	// Generated message map functions
	//{{AFX_MSG(CRaw2imgDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBroseFile();
	virtual void OnOK();
	afx_msg void OnDoConvert();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	imgWriter m_imgWrite;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RAW2IMGDLG_H__FE9F3D29_9478_4CD9_9DB1_C741E0631EF2__INCLUDED_)
